﻿using JNPF.DependencyInjection;

namespace JNPF.TaskScheduler.Entitys.Model;

[SuppressSniffer]
public class ContentModel
{
    /// <summary>
    /// 表达式.
    /// </summary>
    public string cron { get; set; }

    /// <summary>
    /// id.
    /// </summary>
    public string interfaceId { get; set; }

    /// <summary>
    /// 接口名.
    /// </summary>
    public string interfaceName { get; set; }

    /// <summary>
    /// 请求参数.
    /// </summary>
    public List<InterfaceParameter> parameter { get; set; }

    /// <summary>
    /// 租户ID.
    /// </summary>
    public string TenantId { get; set; }

    /// <summary>
    /// 租户数据库名称.
    /// </summary>
    public string TenantDbName { get; set; }

    /// <summary>
    /// 本地任务id.
    /// </summary>
    public string localHostTaskId { get; set; }
}

[SuppressSniffer]
public class InterfaceParameter
{
    /// <summary>
    /// 字段.
    /// </summary>
    public string field { get; set; }

    /// <summary>
    /// 默认值.
    /// </summary>
    public string defaultValue { get; set; }

    /// <summary>
    /// 值.
    /// </summary>
    public string value { get; set; }
}